package cn.gson.springboot.model.mapper;

import cn.gson.springboot.model.pojos.Department;
import cn.gson.springboot.model.pojos.Employee;
import cn.gson.springboot.model.pojos.Job;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("employeeMapper")
public interface EmployeeMapper {
    //查找所有员工
    public List<Employee> findAllEmp(String search);

    //查找所有员工
    public List<Employee> selectAllEmp();

    //查找所有Boss
    public List<Employee> selectAllBoss();

    //查找员工
    public Employee findEmp(Integer empId);

    //模糊查找所有员工
    public List<Employee> findAllEmpByFuzzy(String empName);

    public List<Employee> findDeptEmp(Integer deptId);

    public void updateEmpImg(@Param("pic")String pic,
                             @Param("empId") Integer empId);
}
